#include "StdAfx.h"
#include "AltiumCircuitCompileMask.h"


CAltiumCircuitCompileMask::CAltiumCircuitCompileMask(void)
{
	m_bCollapsed = false;
}


CAltiumCircuitCompileMask::CAltiumCircuitCompileMask( const CAltiumCircuitCompileMask* pEntityObj )
	: CCircuitRectangle(pEntityObj)
{
	m_bCollapsed = pEntityObj->IsCollapsed();
}

CAltiumCircuitCompileMask::CAltiumCircuitCompileMask( CICircuit* pICircuit )
	: CCircuitRectangle(pICircuit)
{
	m_bCollapsed = false;
}


CAltiumCircuitCompileMask::~CAltiumCircuitCompileMask(void)
{
}

void CAltiumCircuitCompileMask::Serialize( CArchive & ar )
{
	if (ar.IsStoring())
	{
		ar << m_bCollapsed;
	}
	else
	{
		ar >> m_bCollapsed;
	}
	CCircuitRectangle::Serialize(ar);
}

CObj * CAltiumCircuitCompileMask::Clone() const
{
	return new CAltiumCircuitCompileMask(this);
}

CDisplayObj * CAltiumCircuitCompileMask::CreateDisplayObj( long lLayerId )
{
	CAltiumCircuitCompileMaskDisObj* pDisObj = new CAltiumCircuitCompileMaskDisObj(this);
	pDisObj->SetLayerId(lLayerId);
	return pDisObj;
}

void CAltiumCircuitCompileMask::CalcBox()
{
	 CCircuitRectangle::CalcBox();
}

eCircuitUnitEntType CAltiumCircuitCompileMask::GetUnitType() const
{
	return ALTIUM_CIRCUIT_COMPILE_MASK;
}


